home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Applications / Utilities / KPerfMon / Source / table_compat.h < prev    next >
Text File  |  1992-07-15  |  2KB  |  61 lines

  1. /* Stuff stolen from 2.1 sys/table.h which disappeared in 3.0 */
  2. #import <sys/dk.h>
  3. #import <bsd/machine/table.h>
  4.  
  5. #define TBL_CPUINFO        12    /* (no index), generic CPU info */
  6. #define TBL_IOINFO        13    /* (no index), generic I/O info */
  7. #define    TBL_DISKINFO        14    /* indexed by dk slot */
  8. #define TBL_NETINFO        15    /* index by network slot */
  9.  
  10. /*
  11.  * TBL_CPUINFO data layout
  12.  */
  13. struct tbl_cpuinfo
  14. {
  15.     int        ci_swtch;        /* # context switches */
  16.     int        ci_intr;        /* # interrupts */
  17.     int        ci_syscall;        /* # system calls */
  18.     int        ci_traps;        /* # system traps */
  19.     int        ci_hz;            /* # ticks per second */
  20.     int        ci_phz;            /* profiling hz */
  21.     int        ci_cptime[CPUSTATES];    /* cpu state times */
  22. };
  23.  
  24. /*
  25.  * TBL_IOINFO data layout
  26.  */
  27. struct tbl_ioinfo
  28. {
  29.     int        io_ttin;    /* # bytes of tty input */
  30.     int        io_ttout;    /* # bytes of tty output */
  31.     int        io_dkbusy;    /* drives active? */
  32.     int        io_ndrive;    /* number disk drives configured */
  33.     int        io_nif;        /* number of network interfaces */
  34. };
  35.  
  36. /*
  37.  * TBL_DISKINFO data layout (not generically implemented)
  38.  */
  39. struct tbl_diskinfo
  40. {
  41.     int        di_time;    /* ticks drive active */
  42.     int        di_seek;    /* # drive seeks */
  43.     int        di_xfer;    /* # drive transfers */
  44.     int        di_wds;        /* # sectors transfered */
  45.     int        di_bps;        /* drive transfer rate (bytes per second) */
  46.     char    di_name[8];    /* drive name */
  47. };
  48.  
  49. /*
  50.  * TBL_NETINFO data layout
  51.  */
  52. struct tbl_netinfo
  53. {
  54.     int        ni_ipackets;    /* # input packets */
  55.     int        ni_ierrors;    /* # input errors */
  56.     int        ni_opackets;    /* # output packets */
  57.     int        ni_oerrors;    /* # output errors */
  58.     int        ni_collisions;    /* # # collisions on csma if's */
  59.     char    ni_name[8];    /* interface name */
  60. };
  61.